package com.zhou.common.mybatis.template.shiro;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("")
    public String test(){
        return "hello USER!";
    }


    @GetMapping("test1")
    public String test1(){
        if(1==1){
            throw new RuntimeException("测试出错");
        }
        return "hello ADMIN!";
    }

}
